package com.cooge.jiexi;

public class StreamoceanPlay {

	public static void main(String[] args) {
		
		String playid = "41383";
		
		String url = "http://www.streamocean.com/puteasy/index.php/Home1/Index/play/id/"+playid+"/";
		
		try {
			String content = NetUtil.getHtml(url);
			int start = content.indexOf("playvideo")+"playvideo".length();
			content =  content.substring(start);
			start = content.indexOf("playVideoByUrl");
			content = content.substring(0, start);
			
			start = content.indexOf("var url = '")+"var url = '".length();
			content =  content.substring(start);
			start = content.indexOf("'");
			content = content.substring(0, start);
			
			if(content.length()>0){
				System.out.println(content);
			}
			
		} catch (Exception e) {
			// TODO Auto-generated catch block

			e.printStackTrace();
		}
		

	}

}
